package fzdy.event;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component("observerregister")
public class ObserverRegister {
    @Autowired
    EventCenter eventCenter;
    @PostConstruct
    public void InitEventbus(){
        eventCenter.registerObserver(new HttpMsgHandle());
    }
}
